import Layout from '@/views/layout/Layout'

const ROLES = ['admin', 'hr', 'manage']

const zhaopinRouter = {
  path: '/zhaopin',
  component: Layout,
  name: 'zhaopin',
  meta: {
    title: '招聘管理',
    icon: 'tree',
    roles: ROLES
  },
  children: [
    {
      path: 'job',
      component: () => import('@/views/zhaopin/job'),
      name: 'zhaopin-job',
      meta: { title: '职位管理', icon: 'documentation', roles: ROLES }
    },
    {
      path: 'project',
      component: () => import('@/views/zhaopin/project'),
      name: 'zhaopin-project',
      meta: { title: '项目管理', icon: 'documentation', roles: ROLES }
    }
  ]
}

export default zhaopinRouter
